﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="manageUser.aspx.cs" Inherits="DeleteUser" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>更改用信息</title>
    <link href="css/allocation.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="wrapper">
        <div id="mainContent">
            <div id="allocationTable" class="dhd_table">
                <form id="form1" runat="server">
                    
                    <table width="100%">
                        <tr>                           
                            <td colspan="2" style="padding-left:0;padding-right:0">
                            <h1>管理系统用户</h1>
                            </td>
                        </tr>
                      
                        <tr><td colspan="2" style="padding-left:0;padding-right:0">
                            <asp:DataGrid ID="dgUsers" runat="server" Width="100%" AllowPaging="True" 
                                AutoGenerateColumns="False" PageSize="15" 
                                onitemcommand="dgUsers_ItemCommand" onitemdatabound="dgUsers_ItemDataBound" 
                                onpageindexchanged="dgUsers_PageIndexChanged">
                                <PagerStyle NextPageText="下一页" PrevPageText="上一页" />
                                <Columns>
                                    <asp:BoundColumn DataField="DEPID" HeaderText="部门ID" Visible="False"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="USERNAME" HeaderText="用户名"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="TRUENAME" HeaderText="用户真名"></asp:BoundColumn>
                                    <asp:TemplateColumn HeaderText="所在部门">
                                        <ItemTemplate>
                                            <asp:Label ID="lblDepName" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="重置密码">
                                        <ItemTemplate>
                                            <asp:Button ID="btnResetPwd" runat="server" CommandName="resetPwd" Text="重置" 
                                                onclientclick="return confirm(&quot;您真的要重置该用户的密码？&quot;)" />
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="是否保留该用户发送出的信息">
                                        <ItemTemplate>
                                            <asp:RadioButton ID="rBtnNo" runat="server" Checked="True" GroupName="save" 
                                                Text="否" />
                                            <asp:RadioButton ID="rBtnYes" runat="server" GroupName="save" Text="是" />
                                        </ItemTemplate>
                                        <HeaderStyle Width="170px" />
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="操作">
                                        <ItemTemplate>
                                            <asp:Button ID="btnDeleteUser" runat="server" CommandName="deleteUser" 
                                                Text="删除" onclientclick="return confirm(&quot;您真的要删除该用户吗?&quot;)" />
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                </Columns>
                            <HeaderStyle ForeColor="#046D30" />
                            </asp:DataGrid>
                        </td></tr>
                                           
                        <tr>
                            <td colspan="2" style="padding-left: 100px; color: Red">
                                注意：重置后，用户的密码会初始化为：000000。</td>
                        </tr>
                     
                    </table>
                </form>
            </div>
        </div>
        <!-- end of mainContent -->
        <!-- end of mainContent -->
        <div id="copyright">
            <p>
                Copyright&copy; 2009-2010 All rights reserved.<strong>桂林供电局</strong></p>
        </div>
    </div>
</body>
</html>
